package com.cn.domain;

import java.util.Date;
import java.util.List;


public class Order {

	private String id;
	private String receiver;
	private String address;
	private String phone;
	private int statu;
	private double summoney;
	private Date ordertime;
	private int uid;
	
//----------------------------------
	private List<OrderItem> list;
	
	
	public List<OrderItem> getList() {
		return list;
	}
	public void setList(List<OrderItem> list) {
		this.list = list;
	}

//-------------------------------------
//------------------是否删除标记-------------------	
	private int isdelete;
	
	
	public int getIsdelete() {
		return isdelete;
	}
	public void setIsdelete(int isdelete) {
		this.isdelete = isdelete;
	}
	//------------------是否删除标记-------------------		
//-------------------获取订单的订单用户------------------------------
	private String username;
	
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
//-------------------获取订单的订单用户------------------------------
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getReceiver() {
		return receiver;
	}
	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getStatu() {
		return statu;
	}
	public String getStatu_s() {
		switch(statu){
		case 0:
			return "未支付";
		case 1:
			return "已支付";
		default:
			return "";
		}
	}
	public void setStatu(int statu) {
		this.statu = statu;
	}
	public double getSummoney() {
		return summoney;
	}
	public void setSummoney(double summoney) {
		this.summoney = summoney;
	}
	public Date getOrdertime() {
		return ordertime;
	}
	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	@Override
	public String toString() {
		return "Order [id=" + id + ", receiver=" + receiver + ", address="
				+ address + ", phone=" + phone + ", statu=" + statu
				+ ", summoney=" + summoney + ", ordertime=" + ordertime
				+ ", uid=" + uid + ", list=" + list + ", isdelete=" + isdelete
				+ ", username=" + username + "]";
	}
	
}
